class AdrEntity {
  String msg;
  int code;
  List<AdrEntityData> data;

  AdrEntity({this.msg, this.code, this.data});

  AdrEntity.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    code = json['code'];
    if (json['data'] != null) {
      data = new List<AdrEntityData>();
      json['data'].forEach((v) {
        data.add(new AdrEntityData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this.msg;
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class AdrEntityData {
  int id;
  String address;
  String def;
  String userId;
  String lat;//经度
  String lng;//纬度
  String phone;
  String sex;
  String name;
  String sOrT;
  String remark;

  AdrEntityData(
      {this.id,
      this.address,
      this.def,
      this.userId,
      this.lat,
      this.lng,
      this.phone,
      this.sex,
      this.name,
      this.sOrT,
      this.remark});

  AdrEntityData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    address = json['address'];
    def = json['def'];
    userId = json['userId'];
    lat = json['lat'];
    lng = json['lng'];
    phone = json['phone'];
    sex = json['sex'];
    name = json['name'];
    sOrT = json['sOrT'];
    remark = json['remark'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['address'] = this.address;
    data['def'] = this.def;
    data['userId'] = this.userId;
    data['lat'] = this.lat;
    data['lng'] = this.lng;
    data['phone'] = this.phone;
    data['sex'] = this.sex;
    data['name'] = this.name;
    data['sOrT'] = this.sOrT;
    data['remark'] = this.remark;
    return data;
  }
}
